import crypto = require("crypto");
const FMKEY = "FMApp159";
export class FMAppUtils{
   static desEncry(content:string):string{
        let resultStr = '';
        try{
            let cipher = crypto.createCipheriv('des', 'FMApp159', 'ProTrade');
            resultStr = cipher.update(content, 'utf8', 'base64');
            resultStr += cipher.final('base64');
        }catch(e){
            console.log(`des加密 encrypt e is ${e}`);
        }
        return resultStr;

    }


}